package it.openHWHackaton.arduinoTableSoccer;

import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;

import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;

public class Main {
	public static void main(String[] args) {
		LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();
		cfg.title = "arduito-table-soccer";
		cfg.useGL20 = false;
		GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
		cfg.width=950;
		cfg.height=768;
		//cfg.fullscreen=true;
		
		Serial serial = new Serial("1");
		RATSGame ratsGame = new RATSGame(serial);
		ratsGame.setPl1Name("Geppo");
		ratsGame.setPl2Name("Ciccio");
		ratsGame.setPl3Name("Filippo");
		ratsGame.setPl4Name("Oktay");
		ratsGame.setTeam1Name("Technology");
		ratsGame.setTeam2Name("Portaltech");
		ratsGame.setStadiumName("Trieste");
		
		serial.setGame(ratsGame);
		new LwjglApplication(ratsGame, cfg);
	}
}
